package me.blankm.wslib.response;

import com.google.gson.annotations.SerializedName;

/**
 * Author by Mr.Meng
 * created 2021/11/16
 *
 * @desc
 */
public class Response {

    @SerializedName("seq_id")
    private String seqId;
    private String action;
    private String resp;
    //模块/场景
    private String module;
    private int code;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getSeqId() {
        return seqId;
    }

    public void setSeqId(String seqId) {
        this.seqId = seqId;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getResp() {
        return resp;
    }

    public void setResp(String resp) {
        this.resp = resp;
    }

    public boolean isOk() {
        return code == 0;
    }


}
